package com.ywq.wechatordersys.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.ywq.wechatordersys.data.OrderDetail;
import com.ywq.wechatordersys.enums.OrderStatus;
import com.ywq.wechatordersys.enums.PayStatus;
import lombok.Data;

import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL) //返回数据 过滤null值
public class OrderDTO {


    /**
     * 订单id
     **/

    private String orderId;
    /**
     * 买家名字
     **/
    private String buyerName;
    /**
     * 买家电话
     **/
    private String buyerPhone;
    /**
     * 买家地址
     **/
    private String buyerAddress;
    /**
     * 买家微信id
     **/
    private String buyerOpenid;
    /**
     * 订单名字
     **/
    private String orderName;
    /**
     * 订单总金额
     **/
    private BigDecimal orderAmount;
    /**
     * 订单状态
     **/
    private Integer orderStatus;
    /**
     * 支付状态
     **/
    private Integer payStatus;
    /**
     * 订单描述
     **/
    private String orderDescription;
    /**
     * 订单创建时间
     */

    private Date createTime;


    List<OrderDetail> orderDetailList;
}
